﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _2._18._2015_MoviesInClass.Models
{
    public class MovieListViewModel
    {
        public string UserName { get; set; }
        public double AverageRating { get; set; }
        public List<MovieViewModel> Movies { get; set; }
    }

    public class MovieViewModel
    {
        public int MovieId { get; set; }
        [Required]
        public string Title { get; set; }
        [Required]
        [DisplayName("Poster URL")]
        public string PosterUrl { get; set; }
        [Range(1, 5)]
        public int Rating { get; set; }
    }
}